package com.mall.order.feign;

import com.common.utils.R;
import com.mall.order.vo.OrderItemSpuInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "mall-product")
@Component
public interface ProductService {
    /**
     * 测试feign
     * @return
     */
    @GetMapping("/product/brand/all")
    public R queryAllBrad();
    @RequestMapping("product/spuinfo/getOrderItemSpuInfoBySpuId/{spuIds}")
    public List<OrderItemSpuInfoVo> getOrderItemSpuInfoBySpuId(@PathVariable("spuIds") Long[] spuIds);
}
